package com.kingyea.app.market.publishMarket.dao;

import com.kingyea.app.market.market.bean.Market;
import com.kingyea.app.market.publishMarket.bean.PublishMarket;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author
 * @version v1.0.0
 * @description PublishMarketMapper
 * @date Created in 2018-03-19 15:48:00
 */
public interface PublishMarketMapper {

    /**
     * 通过ID获取对象
     */
    PublishMarket getById(@Param("id") String id);

    /**
     * 通过appID获取对象
     */
    List<PublishMarket> getByAppCode(String appCode);

    /**
     * 通过ID删除对象
     */
    void deleteById(@Param("id") String id);

    /**
     * 更新对象
     */
    int update(PublishMarket obj);

    /**
     * 保存对象
     */
    void save(PublishMarket obj);

    /**
     * 查询列表
     */
    List<PublishMarket> list(Map<String, Object> obj);

    List<Market> marketList(Map<String, Object> obj);

    Integer deletesByAppCode(String appCode);

//    List<PublishMarket> getAllPublishMarket(Map<String, Object> publishMarket) throws Exception;

}
